package com.myapp.api.service;

import com.myapp.api.entity.Student;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface StudentService {
    public List<Student> getStudents();

    public Student getStudentById(@Param("id") Integer id);

    public Student getStudentBySid(@Param("sid") String sid);

    public Integer getStudentByOneSid(@Param("sid") String sid);

    public List<Student> getStudentBySname(@Param("sname") String sname);

    public int addStudent(@Param("record") Student record);

    public int deleteStudentById(@Param("id") Integer id);

    public int putStudent(@Param("record") Student record);
}
